MAXCOM communication driver

 

MAXCOM communication driver is the driver to communicate with MAXCOM PLC of TongYang Co., Ltd.  in Korea.

 

1. Read Settings

 

<Figure 1> is read setting example of MAXCOM communication driver.

<Figure 1>  Read setting example of MAXCOM communication driver

Device part of  <Figure 1> input Com Port(COM1), Baud Rate(9600), Parity Bit(0), Data Bit(8), Stop Bit(1) respectively. ( fixed to 9600, 0, 8, 1 )

 

MAXCOM  communication driver read schedule

Read schedule setting parameters are as follows:

1) Station – PLC station number. ( single PLC = 255 )

2) Read memory type – memory type of PLC = I,O,C,FI,FO,IR,OR,R, ...

3) Read start address – reading start address in PLC memory.

4) Save start address for Communication Server – Saving start address of Communication Server.

5) Read Size – word unit read size. (  IR,OR,R, ... memory : 1 = 1 word,  I,O,C, ... : 1 = 16 bit )

 

Read schedule example)

READ, 255,  I,   0,    0,  5,

READ, 255,  O,  32,   5,  5,

READ, 255,  C,   0,   10,  10,

READ, 255,  IR,  0,   20,  16,

READ, 255,  OR,  0,  32,  16,

 

 

2. Writing settings

You can set MAXCON PLC by using write settings.

 

Digital Write

Digital write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             PLC station number. ( single PLC = 255 )

3)  ADDRESS          write address in memory. address = PLC address - 1, convert to hex-decimal.

4)  Extra1                   write memory type =I,O,C,FI,FO

5)  Extra2                   don't care.

 

Write example 1) 

PORT : 0  Station : 0, ADDRESS : 0000, EXTRA1 : PX,  EXTRA2 : 0

The setting parameter shown above is a control(On/Off) example for PX0000 address.

 

Note) Address of MAXCON PLC = 1 ~ 256, MAXCOM communication driver = 0000~00FF. 0000~007F (default base) 0080~00FF(extension base)

 

Analog Write

Analog write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             PLC station number. ( single PLC = 255 )

3)  ADDRESS          write address in memory. address = PLC address - 1, convert to hex-decimal.

4)  Extra1                   write memory type =  IR, OR, R.

5)  Extra2                   don't care.

 

Write example 1) 

PORT : 0  Station : 255, ADDRESS : 0004, EXTRA1 : OR,  EXTRA2 : 0

The setting parameter shown above is word unit write setting example for 5 address of OR memory.